Accusoft.TwainPro9.ActiveX
Select a Data Source

The Data Source for the TWAIN session must now be identified.

The Data Source should be set before starting a Session (OpenSession).

Using the Data Source Manager's User Interface (DSM UI)

To enable the application end user to select a Data Source using the Data Source Manager's User Interface, use SelectSource. The DataSource Manager's UI will display with the default Data Source highlighted. The user selects the Data Source desired then selects the OK or Cancel button.

Without the TWAIN DSM UI

TwainPRO™ can retrieve the list of Data Sources (DS) on the current system and set the current Data Source, without using the DSM User Interface.

In order to obtain a list of the Data Sources you must call the OpenDSM method first. OpenDSM fills the DataSourceList array property with a list of all Data Source product names. It will also set the DataSourceCount property to the number of Data Source product names within the DataSourceList array.

To select a current Data Source from the DataSourceList, you call the SetDataSource method with the index number of the Data Source from the DataSourceList array.

See Also

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback